.class public Lcom/instagram/android/feed/a/a/a;
.super Ljava/lang/Object;
.source "FeedAutoLoadMoreHelper.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# instance fields
.field private final a:Lcom/instagram/android/feed/a/a/b;

.field private b:I

.field private c:Lcom/instagram/android/feed/a/a/c;


# direct methods
.method public constructor <init>(Lcom/instagram/android/feed/a/a/b;)V
    .locals 1
    .parameter

    .prologue
    .line 15
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 12
    const/4 v0, -0x1

    iput v0, p0, Lcom/instagram/android/feed/a/a/a;->b:I

    .line 13
    sget-object v0, Lcom/instagram/android/feed/a/a/c;->b:Lcom/instagram/android/feed/a/a/c;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/a;->c:Lcom/instagram/android/feed/a/a/c;

    .line 16
    iput-object p1, p0, Lcom/instagram/android/feed/a/a/a;->a:Lcom/instagram/android/feed/a/a/b;

    .line 17
    return-void
.end method

.method private a(I)V
    .locals 1
    .parameter

    .prologue
    .line 53
    iget v0, p0, Lcom/instagram/android/feed/a/a/a;->b:I

    if-le v0, p1, :cond_1

    .line 54
    sget-object v0, Lcom/instagram/android/feed/a/a/c;->a:Lcom/instagram/android/feed/a/a/c;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/a;->c:Lcom/instagram/android/feed/a/a/c;

    .line 58
    :cond_0
    :goto_0
    return-void

    .line 55
    :cond_1
    iget v0, p0, Lcom/instagram/android/feed/a/a/a;->b:I

    if-ge v0, p1, :cond_0

    .line 56
    sget-object v0, Lcom/instagram/android/feed/a/a/c;->b:Lcom/instagram/android/feed/a/a/c;

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/a;->c:Lcom/instagram/android/feed/a/a/c;

    goto :goto_0
.end method

.method private a(III)Z
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 44
    add-int v0, p1, p2

    .line 45
    if-lez p3, :cond_0

    if-lez p2, :cond_0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/a;->c:Lcom/instagram/android/feed/a/a/c;

    sget-object v2, Lcom/instagram/android/feed/a/a/c;->b:Lcom/instagram/android/feed/a/a/c;

    if-ne v1, v2, :cond_0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/a;->a:Lcom/instagram/android/feed/a/a/b;

    invoke-interface {v1}, Lcom/instagram/android/feed/a/a/b;->b()I

    move-result v1

    add-int/2addr v0, v1

    if-lt v0, p3, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 1
    .parameter "view"
    .parameter "firstVisibleItem"
    .parameter "visibleItemCount"
    .parameter "totalItemCount"

    .prologue
    .line 23
    invoke-direct {p0, p2}, Lcom/instagram/android/feed/a/a/a;->a(I)V

    .line 25
    invoke-direct {p0, p2, p3, p4}, Lcom/instagram/android/feed/a/a/a;->a(III)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 26
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/a;->a:Lcom/instagram/android/feed/a/a/b;

    invoke-interface {v0}, Lcom/instagram/android/feed/a/a/b;->a()V

    .line 29
    :cond_0
    iput p2, p0, Lcom/instagram/android/feed/a/a/a;->b:I

    .line 30
    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 0
    .parameter "view"
    .parameter "scrollState"

    .prologue
    .line 34
    return-void
.end method
